package com.whfc.mach.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description:
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/11/16 16:17
 */
@Data
public class OilDay implements Serializable {

    /**
     * 加油量
     */
    private Double oilAdd;

    /**
     * 耗油量
     */
    private Double oilWear;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 工作状态
     */
    private Integer workState;

    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    public OilDay() {
    }

    public OilDay(Double oilAdd, Double oilWear) {
        this.oilAdd = oilAdd;
        this.oilWear = oilWear;
    }

    public OilDay(Double oilAdd, Double oilWear, Date startTime, Date endTime, Integer workState, Date date) {
        this.oilAdd = oilAdd;
        this.oilWear = oilWear;
        this.startTime = startTime;
        this.endTime = endTime;
        this.workState = workState;
        this.date = date;
    }
}
